import numpy as np
arr3 = np.ones((2,3))*5
print('一位数组arr3:\n',arr3)
arr2 = np.ones(5)*2
print('二维数组arr2:\n',arr2)

arr = np.random.rand(3,4)
print('二维数组arr:\n',arr)

arr1 = np.random.randn(3,4)
print('二维数组arr:\n',arr1)

arr2 = np.random.randint(1,10,size=(3,4))
print('二维数组arr:\n',arr2)

arr5 = np.random.choice([1,2,3,4,5],size=(3,4))
print('二维数组arr:\n',arr5)

arr7 = np.random.randint(1,11,size=(2,3))
print('二维整形数组arr7:\n',arr7)